package j01meiju;

public enum E1 {
    //枚举项 - “字符串”
    TOP,LEFT,RIGHT
}

class J2{
    public static void main(String[] args) {
        E1 direction = E1.TOP;
        switch (direction){
            case RIGHT:
                break;
            case TOP:
                break;
            case LEFT:
                break;
        }

//        if(direction==E1.TOP){
//
//        }
    }
}


